package example.simple_mindmap.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: 8.mindmap
 * @BelongsPackage: example.simple_mindmap.common.config
 * @Author : 游在海里的鱼
 * @CreateTime : 2024-05-12  00:26
 * @Version : 1.0
 * @ClassName : TODO
 * @Description : TODO
 */
@Data
@Component
@ConfigurationProperties(prefix = "var.redis")
public class RedisProperties {

    public String default_avatar;
    public String default_name;

    //缓存时间
    //用户会话在redis中的保存时间，单位分钟
    public Long session_user_save_time;
    //导图在redis中的保存分钟
    public Long cache_mindmap_list_time; //主页导图缓存时间
    public Long cache_mindmap_time;
    public Long cache_reply_time;
    public Long cache_user_time;
    public Long cache_scheme_time;
    public Long cache_template_time;
    public Long cache_word_time;
    //缓存前缀
    //用户登录凭证token的前缀
    public String session_user_pre;
    public String cache_user_pre;
    public String lock_user;

    public String cache_mindmap; //导图缓存
    public String cache_mindmap_index; //主页导图列表缓存
    public String cache_mindmap_list;  //用户导图列表缓存
    public String cache_mindmap_list_capacity;
    public String cache_mindmap_page_pre;
    public String lock_mindmap_analysis_pre;
    public String lock_mindmap_add;
    public String lock_mindmap_read_write;
    public String lock_mindmap_list_read_write;

    public String cache_scheme_pre;
    public String cache_scheme_list_pre;

    public String cache_word_byTime_pre;
    public String cache_word_byCount_pre;
    public String cache_word_page_pre;

    public String cache_reply_list;

    public String cache_template_list_pre;

}


























